<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ page import="com.hsmpay.mobile.pojo.system.ErrorCode" %>
<%@ page import="com.hsmpay.mobile.service.system.ErrorCodeService" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%
    WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
    ErrorCodeService<ErrorCode, Long> errorCodeService = (ErrorCodeService<ErrorCode, Long>) context.getBean("errorCodeService");
    ErrorCode ec = errorCodeService.getErrorCodeByCode("9992");
    if (null != ec) {//正常
        out.print("1");
    } else {
        out.print("0");
    }
%>